package com.gutai.admin.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * 描述：
 * 
 * <pre>
 * HISTORY
 * ****************************************************************************
 *  ID    DATE            PERSON            REASON
 *  1     2018年11月7日         YC           Create
 * ****************************************************************************
 * </pre>
 * 
 * @author YC
 * @version 1.0
 */
@Entity
@Table(name = "nideshop_goods")
public class Goods {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /* 1006002 */
    private String goodsSn;
    /* goods name */
    private String name;
    private Integer brandId;
    private Integer categoryId;
    private Integer goodsNumber;
    /*now is null*/
    private String keywords;
    /* goods brief like 一级桑蚕丝，吸湿透气柔软*/
    private String goodsBrief;
    /* 750*200 text of pic with url like detail to see instance */
    private String goodsDesc;
    private Short isOnSale;
    private Long addTime;
    /*different and repeat*/
    private Short sortOrder;
    private Short isDelete;
    /*null for now*/
    private Integer attributeCategory;
    /*专柜价格*/
    private Double counterPrice;
    /*附加*/
    private Double extraPrice;
    private Short isNew;
    /*商品单位*/
    private String goodsUnit;
    /*商品主图 800*800*/
    private String primaryPicUrl;
    /*商品列表图 800*800*/
    private String listPicUrl;
    /* 零售价格 */
    private Double retailPrice;
    /* 销售量 */
    private Integer sellVolume;
    /* 主sku　product_id */
    private Integer primaryProductId;
    /* 单位价格，单价 default 0.00 */
    private Double unitPrice;
    /* 限时购 */
    private String promotionDesc;
    /* empty for now */
    private String promotionTag;
    /* APP专享价 default 0.00 */
    private Double appExclusivePrice;
    /* 是否是APP专属 default 0 */
    private Short isAppExclusive;
    /* default 0 */
    private Short isLimited;
    /* default 0 */
    private Short isHot;
    /** 创建时间 */
    @Column(updatable = false, insertable = false)
    private Long createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getGoodsBrief() {
        return goodsBrief;
    }

    public void setGoodsBrief(String goodsBrief) {
        this.goodsBrief = goodsBrief;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public Short getIsOnSale() {
        return isOnSale;
    }

    public void setIsOnSale(Short isOnSale) {
        this.isOnSale = isOnSale;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Short getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Short sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Short getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Short isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getAttributeCategory() {
        return attributeCategory;
    }

    public void setAttributeCategory(Integer attributeCategory) {
        this.attributeCategory = attributeCategory;
    }

    public Double getCounterPrice() {
        return counterPrice;
    }

    public void setCounterPrice(Double counterPrice) {
        this.counterPrice = counterPrice;
    }

    public Double getExtraPrice() {
        return extraPrice;
    }

    public void setExtraPrice(Double extraPrice) {
        this.extraPrice = extraPrice;
    }

    public Short getIsNew() {
        return isNew;
    }

    public void setIsNew(Short isNew) {
        this.isNew = isNew;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public String getPrimaryPicUrl() {
        return primaryPicUrl;
    }

    public void setPrimaryPicUrl(String primaryPicUrl) {
        this.primaryPicUrl = primaryPicUrl;
    }

    public String getListPicUrl() {
        return listPicUrl;
    }

    public void setListPicUrl(String listPicUrl) {
        this.listPicUrl = listPicUrl;
    }

    public Double getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    public Integer getSellVolume() {
        return sellVolume;
    }

    public void setSellVolume(Integer sellVolume) {
        this.sellVolume = sellVolume;
    }

    public Integer getPrimaryProductId() {
        return primaryProductId;
    }

    public void setPrimaryProductId(Integer primaryProductId) {
        this.primaryProductId = primaryProductId;
    }

    public Double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getPromotionDesc() {
        return promotionDesc;
    }

    public void setPromotionDesc(String promotionDesc) {
        this.promotionDesc = promotionDesc;
    }

    public String getPromotionTag() {
        return promotionTag;
    }

    public void setPromotionTag(String promotionTag) {
        this.promotionTag = promotionTag;
    }

    public Double getAppExclusivePrice() {
        return appExclusivePrice;
    }

    public void setAppExclusivePrice(Double appExclusivePrice) {
        this.appExclusivePrice = appExclusivePrice;
    }

    public Short getIsAppExclusive() {
        return isAppExclusive;
    }

    public void setIsAppExclusive(Short isAppExclusive) {
        this.isAppExclusive = isAppExclusive;
    }

    public Short getIsLimited() {
        return isLimited;
    }

    public void setIsLimited(Short isLimited) {
        this.isLimited = isLimited;
    }

    public Short getIsHot() {
        return isHot;
    }

    public void setIsHot(Short isHot) {
        this.isHot = isHot;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

}
